import request from '@/utils/request'

export const suggestList = (search) => 
    request({
        url: '/suggest',
        method: 'get',
        params: {
            name: search.name,
            offset: search.offset,
            limit: search.limit
        }
    })
export const saveSuggest = (suggest) =>
    request({
        url: '/suggest/add',
        method: 'post',
        data: suggest
    })
export const updateSuggest = (id, suggest) =>
    request({
        url: '/suggest/' + id,
        method: 'put',
        data: suggest
    })
export const removeSuggest = (id) =>
    request({
        url: '/suggest/' + id,
        method: 'delete'
    })

